dxp-ux

(0 reviews)

GET PaymentHistory (TMF-676)

listPayment

This operation retrieves the payment history by using account number.

This operation is towards

  1. LCPR: Aria, Matrixx, CSG.
  2. Panama: Liberate

Request URL

https://[localhost]:[port]/dxp-ux/v1/{businessId}/payment
URL PARAMS
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
namevaluedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
client_idstringThe client_id identifying the channel. Minimum characters: 5Y(PR, PA)
client_secretstringPassword associated with the client_id. Minimum characters: 5Y(PR, PA)
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.N(PR, PA)
channelIdstringChannel to business Allowed Value : APPY(PR) N/A(PA)
lobstringThe Line of Business Identifier Allowed ENUM values: FIXED, PREPAID, POSTPAIDY (PR. For Matrixx not in scope) N/A(PA)
targetSystemstringExpected target system: csg, matrixx, ariaY (PR) N/A(PA)
Query Param
nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
account_nostringTo retrieve the payments from a specific accountY(PR, PA)
startDatestringTo retrieve the payments performed after this dateN(PR, PA)
endDatestringTo retrieve the payments performed before this dateN(PR, PA)
paymentItem.referredTypestringTo retrieve the payments from a specific referredType
Possible values are: history, planDetails, plansByAcct, receipt, deposits, depositDetails, items, summary
N/A(PR) N(PA)
Data Model
Response Data Model
nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
idstringUnique identifier of PaymentY(PR, PA)
descriptionstringText describing the contents of the paymentN(PR) Y(PA)
correlatorIdstringUnique identifier in the client for the payment in case it is needed to correlateN(PR) Y(PA)
statusstringStatus of the paymentN(PR) Y(PA)
statusDatedatetime or
string
Date when the status was recorded
Note for PA: This field type is string
N(PR) Y(PA)
namestringScreen name of the paymentN(PR) Y(PA)
paymentDatedatetime or
string
Date when the payment was performed
Note for PA: This field type is string
N(PR) Y(PA)
extendedCharacteristics[]arrayRepresents additional attributes of payment entityN(PR) N/A(PA)
extendedCharacteristics[].namestringname of the additional attributes (ex: "paymentDate", "procStatusCode")N(PR) N/A(PA)
extendedCharacteristics[].valuestringvalue of the additional attributes(ex: "2023-06-09", 100)N(PR) N/A(PA)
accountobjectAccount reference. A account may be a party account or a financial account.N(PR) Y(PA)
account.idstringUnique identifier of the accountN(PR) Y(PA)
account.@typestringWhen sub-classing, this defines the sub-class entity nameN(PR) N/A(PA)
account.namestringName of the accountN(PR) Y(PA)
account.descriptionstringDetailed description of the accountN/A(PR) Y(PA)
amountobjectA base / value business entity used to represent moneyN(PR) N/A(PA)
amount.valuenumberA positive floating point numberN(PR) N/A(PA)
amount.unitstringCurrency (ISO4217 norm uses 3 letters to define the currency)N(PR) N/A(PA)
amount.amountnumberA positive floating point numberN(PR) N/A(PA)
paymentMethodobjectlink to the resource that holds information about the payment mean used to complete the operationY(PR, PA )
paymentMethod.idstringUnique Identifier within the server for the payment method.N(PR) N/A(PA)
paymentMethod.@typestringWhen sub-classing, this defines the sub-class entity nameN(PR) Y(PA)
paymentMethod.detailsobjectDetails of payment methodN(PR) N/A(PA)
paymentMethod.details.typestringType of payment methodN(PR) N/A(PA)
paymentMethod.details.cardNumberstringCard NumberN(PR) N/A(PA)
paymentMethod.details.expirationDatestringCard Expiry DateN(PR) N/A(PA)
paymentItem[]arrayThe paymentItem is the result of lettering process. It enables to assign automatically or manually part of incoming payment amount to a billN(PR) Y(PA)
paymentItem[].totalAmountobjectA base / value business entity used to represent moneyN(PR) Y(PA)
paymentItem[].totalAmount.amountnumberA positive floating point numberN(PR) N/A(PA)
paymentItem[].totalAmount.valuenumberA positive floating point numberN/A(PR) Y(PA)
paymentItem[].itemobjectEntity reference schema to be use for all entityRef class.N(PR) Y(PA)
paymentItem[].item.idstringUnique identifier of a related entity.N(PR) N/A(PA)
paymentItem[].item.referredTypestringThe actual type of the target instance when needed for disambiguation.N(PR) N/A(PA)
paymentItem[].item.@referredTypestringThe actual type of the target instance when needed for disambiguation.N/A(PR) Y(PA)
itemobjectReference where to get more information about the entity with another API callN(PR) N/A(PA)
item.referredTypestringThe actual type of the target instance when needed for disambiguation.N(PR) N/A(PA)
item.idstringUnique identifier of a related entity.N(PR) N/A(PA)
refund[]arrayarray for the refund detailsN(PR) N/A(PA)
refund[].idstringRefunded id (unique) from matrixxN(PR) N/A(PA)
refund[].totalAmountobjectrefund amount detailsN(PR) N/A(PA)
refund[].totalAmount.valuenumberrefund amount valueN(PR) N/A(PA)
refund[].totalAmount.unitstringCurrency (ISO4217 norm uses 3 letters to define the currency)N(PR) N/A(PA)
refund[].statusstringstaus of the refund(ex: refunded)N(PR) N/A(PA)
refund[].refundDatedatetimeDate of the refundN(PR) N/A(PA)
refund[].@typestringWhen sub-classing, this defines the sub-class entity name(ex: "RefundRef")N(PR) N/A(PA)
totalAmountobjectA base / value business entity used to represent moneyN(PR) Y(PA)
totalAmount.valuenumberA positive floating point numberN(PR) Y(PA)
totalAmount.unitstringCurrency (ISO4217 norm uses 3 letters to define the currency)N(PR) N/A(PA)
totalAmount.amountnumberA positive floating point numberN(PR) N/A(PA)
taxAmountobjectA base / value business entity used to represent moneyN(PR) N/A(PA)
taxAmount.amountnumberA positive floating point numberN(PR) N/A(PA)
@typestringWhen sub-classing, this defines the sub-class entity nameN(PR) N/A(PA)
paymentItem subResource - dataModel
resource characteristic nametypedescriptionrequired(mandatory-Y, optional-N, Not applicable- N/A)examples
paymentstringThe actual type of the target instance when needed for disambiguation.Y(PA)PA: { "item": { "referredType": "payment"}}
depositstringThe actual type of the target instance when needed for disambiguation.Y(PA)PA: {"item": { "referredType": "deposit"}}
extendedCharacteristics subResource - dataModel
resource characteristic nametypedescriptionrequired(mandatory-Y, optional-N, Not applicable- N/A)examples
procStatusCodestringResponse code from payment processor (Braintree). Possible Values will be :1000(Approved), 4001(settlement_declined), 4000(settled), 81706(CVV is required), ARIA COMM 1 (voided payment), etc...N(PR) N/A(PA)PR: { "name": "procStatusCode", "value": "1000" }
paymentDatestringProcessor payment dateN(PR) N/A(PA)PR: { "name": "paymentDate", "value": "2024-02-13" }
procPaymentIdstringThe processor payment IDN(PR) N/A(PA)PR: { "name": "procPaymentId", "value": "bkh04029" }
paymentMethodNostringProcessor payment method numberN(PR) N/A(PA)PR: { "name": "paymentMethodNo", "value": "1" }
procStatusTextstringPayment processor status text is returned The possible payment status is either 'Approved or settled or Settlement Pending or External Payment or Cash Credit or Insufficient Funds or fail or {Unknown}N(PR) N/A(PA)PR: { "name": "procStatusText", "value": "Approved" }
Key considerations
PA Implementation
1. This implementation retrieves the payment history for FIXED, POSTPAID accounts.
2. To retrieve payment history for a specific duration, startDate and endDate queryParameters must be passed.
3. If the dates are not specified in queryParams, the API returns history of last one year by default.
4. Description field provides the billReferenceNumber.
5. statusDate field is the enteredDate in Liberate.
6. name field gives the name value which is sent during creating the payment (ThirdPartySource).
7. correlatorId field gives the correlatorId value which is sent during creating the payment (ThirdPartyPaymNo).
8. status possible values are "Returned" or "Success".
9. By default, payment history is retrieved if 'paymentItem.referredType' queryParam is not provided; if specified, it must be sent as "history"
10. For all the dateTime fields
   - Any datetime before 1908-04-22 will show offset -05:18
   - Any datetime on or after 1908-04-22 will show offset -05:00

Reviews